package com.xdf.whiteaccount.dao;

import org.springframework.stereotype.Repository;
import java.util.List;
import com.xdf.whiteaccount.entity.GjrkbillCp;
import com.xdf.whiteaccount.utils.Example;
import org.apache.ibatis.annotations.Param;

/**
 * @Description : 由代码生成器生成
 * @Author : chanchaw
 * @Date :  2023-12-1 10:11:33
 */
@Repository
public interface GjrkbillCpMapper {
    int insert(GjrkbillCp record);

    int insertSelective(GjrkbillCp record);

    int multiInsert(List<GjrkbillCp> list);

    int updateByPrimaryKey(GjrkbillCp record);

    int updateByPrimaryKeySelective(GjrkbillCp record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer B_ItemID);
    // 根据主键查询
    GjrkbillCp selectByPrimaryKey(Integer B_ItemID);

    List<GjrkbillCp> selectAll();

    int save(GjrkbillCp record);
    int multiSave(List<GjrkbillCp> list);

    //================= 下面是 Example 代码 ==================
    List<GjrkbillCp> selectByExample(@Param("example") Example example);
    int updateByExampleSelective(@Param("record") GjrkbillCp record,@Param("example") Example example);
    int insertByExampleSelective(@Param("record") GjrkbillCp record,@Param("example") Example example);
    int deleteByExample(@Param("example") Example example);

    GjrkbillCp getNext(Integer id);
    GjrkbillCp getPrev(Integer id);
    GjrkbillCp getFirst();
    GjrkbillCp getLast();
    //=================以上是自动生成的代码，自定义代码请写在下面==================
    List<GjrkbillCp> selectByPrimaryKeyList(List<Integer> idList);
    int clearFPDID(Integer cpBillfhId);
}